//
//  KMCustomHeader.m
//  CNstorm
//
//  Created by 陈家将 on 16/11/12.
//  Copyright © 2016年 chenjiajiang. All rights reserved.
//

#import "KMCustomHeader.h"

@implementation KMCustomHeader

+ (instancetype)headerWithRefreshingCallBack:(MJRefreshComponentRefreshingBlock)refreshingBlock {
    KMCustomHeader *cmp = [[self alloc] init];
    cmp.refreshingBlock = refreshingBlock;
//    UIImageView *bgimgview = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"refreshBgImg"]];
//    [cmp insertSubview:bgimgview atIndex:0];
//    [bgimgview mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.centerX.mas_equalTo(cmp.mas_centerX);
//        make.centerY.mas_equalTo(cmp.mas_centerY).offset(-30);
//    }];
//    cmp.arrowView.alpha = 0.0;
//    cmp.stateLabel.hidden = YES;
//    cmp.lastUpdatedTimeLabel.hidden = YES;
    return cmp;
}

@end
